#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author：Yu
def ipdw(ip):
    url = 'https://restapi.amap.com/v3/ip?ip=%s&key=c4b32eae143cec8794b9fbede332cdde&output=json'%ip
    import requests
    poo  = requests.get(url)
    data = poo.json()
    data = data['province']+data['city']
    return data

